import request from '@/utils/request'

// 查询漏井作业记录列表
export function listWellWorkRecord(query) {
  return request({
    url: '/loss/wellWorkRecord/list',
    method: 'get',
    params: query
  })
}

// 查询漏井作业记录详细
export function getWellWorkRecord(id) {
  return request({
    url: '/loss/wellWorkRecord/' + id,
    method: 'get'
  })
}

// 新增漏井作业记录
export function addWellWorkRecord(data) {
  return request({
    url: '/loss/wellWorkRecord',
    method: 'post',
    data: data
  })
}

// 修改漏井作业记录
export function updateWellWorkRecord(data) {
  return request({
    url: '/loss/wellWorkRecord',
    method: 'put',
    data: data
  })
}

// 删除漏井作业记录
export function delWellWorkRecord(id) {
  return request({
    url: '/loss/wellWorkRecord/' + id,
    method: 'delete'
  })
}
